import http from "../utils/axios";

export const getData = () => {
  return http.get("/home/getdata");
};

//post 请求
export const postWeather = () => {
  return http.post("/weather");
}; 

//登录
export const login = (username, password) => {
  return http.post("/login", { username, password });
};